class Nint(int):
    def __new__(cls,value):
        if type(value) == type('A'):
            sumasci=0
            for eachchar in value:
                sumasci+=ord(eachchar)
            return int.__new__(cls,sumasci)
        else:
            return int.__new__(cls,value)



print(Nint(123))
print(Nint(1.5))
print(Nint('123'))
print(Nint('A'))
print(Nint('FishC'))

